home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / ks20_2.arc / KS.DOC < prev    next >
Text File  |  1990-12-16  |  98KB  |  2,279 lines

  1.      
  2.      
  3.      
  4.      
  5.      
  6.      
  7.                                   KWIKSTAT 2.00
  8.      
  9.                             Condensed Manual on Disk
  10.      
  11.                             Statistical Data Analysis
  12.                        for IBM PC and Compatible Computers
  13.      
  14.                                by Alan C. Elliott
  15.      
  16.      
  17.                           TexaSoft/Mission Technologies
  18.                                   P.O. Box 1169
  19.                              Cedar Hill, Texas 75104
  20.                                   214-291-2115
  21.                                   Version 2.00
  22.      
  23.                         (C)Copyright 1989 Alan C. Elliott
  24.      
  25.      
  26.      
  27.      
  28.      
  29.      
  30.      ALL RIGHTS RESERVED 
  31.      
  32.      All rights reserved. Printed in the United States of America. No part 
  33.      of this book may be reproduced without prior permission. For 
  34.      information, address TexaSoft, P.O. Box 1169, Cedar Hill, Texas 75104. 
  35.      
  36.      No patent liability is assumed with respect to the use of the 
  37.      information contained herein. While every precaution has been taken in 
  38.      the preparation of this publication, the publisher assumes no 
  39.      responsibility for errors or omissions. Neither is any liability 
  40.      assumed for damages resulting from the use of the information herein. 
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.           ___________________________________________________________
  58.               Please become a registered user - send in ORDER form.
  59.                                         1
  60.           
  61.           KWIKSTAT 2.00
  62.           ___________________________________________________________
  63.           
  64.                               ORDER BLANK FOR KWIKSTAT
  65.                                DISTRIBUTOR SN:K200689
  66.                                                                           
  67.      KWIKSTAT software package, bound manual, latest version
  68.      registration, diskettes              ($49) x _______= $____________
  69.                                                                           
  70.      KWIKSTAT 10-PACK - Ten full copies  ($299) x _______= $____________
  71.                                                                           
  72.      KWIKSTAT Manuals                ($10 each) x _______= $____________
  73.      (You must be a registered user to order manuals)
  74.                                                                           
  75.      Automatic KWIKSTAT update to next future version,
  76.      disks and manual                     ($25) x _______= $____________
  77.                                                                           
  78.      Printer support disk for users with Hercules (Monographics)
  79.      monitors and/or Laserjet/Paintjet     ($5) x _______= $____________
  80.                                                                           
  81.      Add $4 Postage & Handling or $8 if PO, COD or RUSH,   $____________
  82.      $15 for Express Mail or add $10 if overseas.
  83.                                                                           
  84.      Texas Residents add 7% sales tax                      $____________
  85.      
  86.      TOTAL ENCLOSED                                        $
  87.                                                             ============
  88.      -------------------------------------------------------------------
  89.      Specify:    ____5 1/4 inch disk or      ____ 3.5 inch disk
  90.      -------------------------------------------------------------------
  91.      Check one:___Check or M.O. ___MC ___VISA  ___ P.O. #___________
  92.      -------------------------------------------------------------------
  93.                                                                           
  94.        IF CREDIT CARD:Name on card:_________________________________
  95.                                                                           
  96.        Card Number is:____________________________Exp Date__________
  97.                                                                           
  98.        Authorized Signature:________________________________________
  99.      -------------------------------------------------------------------
  100.                                                                           
  101.        Mail order to:____________________________________________
  102.      
  103.        Address:__________________________________________________
  104.      
  105.        City, State, Zip:_________________________________________
  106.      
  107.        Phone (    )______________________________________________
  108.      -------------------------------------------------------------------
  109.      Mail to:TexaSoft, P.O. Box 1169, Cedar Hill, TX 75104. Thanks!
  110.      Guaranteed satisfaction or return for a full refund. Phone Orders
  111.      (Visa, MasterCard): Call 214-291-2115. ORDER NOW!
  112.  
  113.  
  114.  
  115.  
  116.           ___________________________________________________________
  117.               Please become a registered user - send in ORDER form.
  118.                                         2
  119.           
  120.           KWIKSTAT 2.00
  121.           ___________________________________________________________
  122.           
  123.      INSTALLING KWIKSTAT
  124.      
  125.      KWIKSTAT is distributed on two diskettes, Disk 1 and Disk 2. These 
  126.      diskettes contain the KWIKSTAT programs and supporting files. 
  127.      
  128.      REQUIREMENTS TO RUN KWIKSTAT 
  129.      
  130.      1. An IBM PC or compatible computer.
  131.      2. DOS 2.0 or higher.
  132.      3. At least 320K of memory.
  133.      4. A graphics, CGA, EGA, VGA or Hercules graphics type monitor. (If
  134.      you have  a standard monochrome (IBM type) screen, the calculated
  135.      results will still be  ok, but the graphics will not be displayed.)
  136.      
  137.      INSTALLING KWIKSTAT ON YOUR HARD DISK 
  138.      
  139.      A hard disk is recommended for using KWIKSTAT, although individual 
  140.      programs can be run from a floppy disk. The procedure described here 
  141.      loads KWIKSTAT on the hard disk drive C:, in a subdirectory named 
  142.      C:\KWIKSTAT. 
  143.      
  144.      STEP 1: Place the KWIKSTAT disk number 1 in drive A:. Make disk A: the 
  145.      default drive, by entering the command: 
  146.      
  147.      C>A: 
  148.      
  149.      Next, enter the command: 
  150.      
  151.      A>KWIKLOAD C: 
  152.      
  153.      Follow the instructions on the screen, and all necessary files will be 
  154.      loaded. If you want the program loaded on a hard disk other than C:, 
  155.      place the disk drive name (e.g. D:) in the KWIKLOAD command in place 
  156.      of the C:. 
  157.      
  158.      STEP 2: In order to print a graphics plot to the printer, the DOS 
  159.      command file GRAPHICS.COM must be loaded into memory. (Hercules 
  160.      graphics may require a special print program. See information in the 
  161.      appendix of this manual.) The command GRAPHICS is in the KS.BAT file 
  162.      used to begin KWIKSTAT. In order for DOS to know where to find the 
  163.      GRAPHICS.COM command, you must place a PATH command in your 
  164.      AUTOEXEC.BAT file that points to the directory where the GRAPHICS 
  165.      command resides. 
  166.      
  167.      FOR FLOPPY DISK OPERATION 
  168.      
  169.      KWIKSTAT modules (.EXE) programs may be run independently, as long as 
  170.      the runtime module (BRUN40.EXE) is also on disk. If you are using a 
  171.      floppy-disk based system, you may generally put three or four KWIKSTAT 
  172.      programs on a disk. The programs are named KS20????.EXE, where ???? is 
  173.      DATA, STAT, AOV1, REG, CROS, LIFE and UTIL. Copy the most used 
  174.      programs, and the files KSMENU.INI and KWIKSTAT.HLP on a diskette 
  175.           ___________________________________________________________
  176.               Please become a registered user - send in ORDER form.
  177.                                         3
  178.           
  179.           KWIKSTAT 2.00
  180.           ___________________________________________________________
  181.           
  182.      along with the BRUN40.EXE and copy the remaining programs on another 
  183.      diskette. 
  184.      
  185.      When running KWIKSTAT on floppies, place the program disk in drive A: 
  186.      and the data disk in B:. In the UTILITIES module, set up your default 
  187.      path to B:\. This will create a file called "KSTAT.INI". From DOS, 
  188.      copy that file to your other program disk. The KSTAT.INI file tells 
  189.      KWIKSTAT where your data is stored. While running KWIKSTAT you will 
  190.      never need to change disks unless you attempt to run a program that is 
  191.      not on the default disk. When you want to run such a program, KWIKSTAT 
  192.      will prompt you to switch disks. You will not have to change the data 
  193.      disk in drive B:. Never change the data disk while a KWIKSTAT program 
  194.      is running. 
  195.      
  196.      If you are using a 3.5 inch disk or a 5 1/4 inch 1.2 megabyte disk 
  197.      system, you can fit all of the KWIKSTAT programs on one disk. 
  198.      
  199.      INSTRUCTIONS FOR OPERATION 
  200.      
  201.      From the hard disk prompt "C", get into the KWIKSTAT directory using 
  202.      the command: 
  203.      
  204.      C>CD \KWIKSTAT 
  205.      
  206.      To begin KWIKSTAT, enter the command: 
  207.      
  208.      C>KS 
  209.      
  210.      MONITOR AND PATH SETUP 
  211.      
  212.      To setup KWIKSTAT for the monitor you are using, and for the path to 
  213.      your data, select the SETUP option in the UTILITY module, and select 
  214.      the appropriate choice for the path to your data. 
  215.      
  216.      LATENEWS 
  217.      
  218.      Print the file LATENEWS.DOC to get the latest information on Kwikstat. 
  219.      It may include information on new features or changes not included in 
  220.      this manual. 
  221.      
  222.      A KWIK TUTORIAL 
  223.      
  224.      This short tutorial will give you a feeling for how to use KWIKSTAT. 
  225.      It will assume you are using KWIKSTAT on a hard disk. Begin KWIKSTAT 
  226.      with the KS command. After the intro screen, notice the menu. 
  227.      
  228.      Items lettered A to I are procedures of THIS module.  Items numbered 1 
  229.      to 7 are additional modules. Items 1 to 7 will always stay the same. 
  230.      Lettered menu items change depending which module you are currently 
  231.      using. 
  232.      
  233.  
  234.           ___________________________________________________________
  235.               Please become a registered user - send in ORDER form.
  236.                                         4
  237.           
  238.           KWIKSTAT 2.00
  239.           ___________________________________________________________
  240.           
  241.      THE HELP SCREEN 
  242.      
  243.      To examine the HELP menu, press the F1 function key. The HELP menu 
  244.      lists major topics, and the screen number. To look at a particular 
  245.      topic, enter the screen number you desire. For example, look at screen 
  246.      7. Type the number 7, and press Enter: 
  247.      
  248.      Enter SCREEN NUMBER or Enter to Cancel:7 
  249.      
  250.      KWIKSTAT displays screen 7. To move to screen number 8, press Enter. 
  251.      To go back to the menu, type the "M" key. To exit the HELP module, 
  252.      press the "Esc" key. Press the Esc key now. This takes you back to the 
  253.      main KWIKSTAT DATA module menu. Every module has the help screens 
  254.      available. The help facility is always selected from a KWIKSTAT main 
  255.      menu, by pressing F1. 
  256.      
  257.      EXAMPLE OF DESCRIPTIVE STATISTICS 
  258.      
  259.      This example will use data already stored in a dBASE ".DBF" file 
  260.      currently on the KWIKSTAT disk. To go to the Descriptive Statistics 
  261.      "STAT" module, type 1 at the DATA module menu. It takes a few seconds 
  262.      to swap modules. Soon, you will see an initial screen which gives a 
  263.      directory of all ".DBF" files on disk. The program prompts you to 
  264.      choose the database to use. For this example, enter the name EXAMPLE. 
  265.      
  266.      KWIKSTAT will usually "remember" the last database you used, and will 
  267.      automatically read in that database when a module is begun. In this 
  268.      case, choosing a database is skipped, and you immediately go to the 
  269.      main module menu. Enter dBASE III file to use (.DBF assumed):EXAMPLE 
  270.      KWIKSTAT will load the file, and present the Descriptives Statistics 
  271.      menu. (NOTE:There are some procedures which do not require input from 
  272.      a database. By entering a blank name, you may proceeded with no 
  273.      database in use.) If KWIKSTAT does not find the EXAMPLE database, you 
  274.      may not be in the KWIKSTAT subdirectory, or you may not have loaded 
  275.      KWIKSTAT correctly. If so, return to the installation instructions and 
  276.      try again. 
  277.      
  278.      From the STAT menu, press the letter B to choose Descriptive 
  279.      Statistics. The program now displays the variables available for 
  280.      analysis from the database. In the variable selection menu only the 
  281.      numeric variables are available, since it doesn't make sense to find 
  282.      the mean of a character variable. 
  283.      
  284.      Enter the number 2 to select the AGE variable, and press Enter. The 
  285.      program will now perform a series of calculations on the data, and 
  286.      will produce a screen of descriptive statistics, and a box plot of the 
  287.      data. 
  288.      
  289.      If you want a printed copy of this screen, MAKE SURE YOUR PRINTER IS 
  290.      TURNED ON, and is ON LINE, and HAS PAPER. Then, press Shift-Prtsc. 
  291.      Notice that this is a graphics screen, and generally takes longer to 
  292.      print than a normal screen. Any time you want a copy of the results on 
  293.           ___________________________________________________________
  294.               Please become a registered user - send in ORDER form.
  295.                                         5
  296.           
  297.           KWIKSTAT 2.00
  298.           ___________________________________________________________
  299.           
  300.      the screen, use the Shift-Prtsc command (some versions of the PC 
  301.      keyboards have a print screen command that does not require a shift). 
  302.      
  303.      IF THE SCREEN DOES NOT PRINT PROPERLY: You may not have the GRAPHICS 
  304.      command properly implemented - see installation again. Check your 
  305.      printer manual and the appendix on printers and monitors. 
  306.      
  307.      To return to the main menu, press the Esc key. From the main menu, to 
  308.      end KWIKSTAT and return to DOS, press Esc. Optionally, you could have 
  309.      swapped to any other KWIKSTAT module. This ends the brief tutorial. 
  310.      
  311.      IF SOMETHING GOES WRONG 
  312.      
  313.      If something goes wrong, check the manual, and check your work. If you 
  314.      cannot seem to resolve the problem, please fill out the BUG REPORT in 
  315.      the appendix, and send it in right away, so that errors in the program 
  316.      can be eliminated. If you have a suggestion for how to improve 
  317.      KWIKSTAT, please fill out the USER'S BALLOT in the appendix. Thanks. 
  318.      
  319.      ERROR CODES 
  320.      
  321.      The KWIKSTAT program is written in QuickBASIC, a Microsoft Product. 
  322.      When error codes appear, you may often look these codes up in the 
  323.      Appendix of your IBM or Microsoft BASIC manual. Some error codes are 
  324.      given in an appendix to this manual. Sometimes an error is caused by 
  325.      something that is easy to fix, such as a full disk, or a write protect 
  326.      tab on a disk. If it looks like a program bug, PLEASE fill out a bug 
  327.      report form, and mail it in. 
  328.      
  329.      
  330.      KWIKSTAT DATA MODULE 
  331.      
  332.      The KWIKSTAT data module (KS20DATA.EXE) is used to manage your data. 
  333.      In this module you enter data, change data, create new data fields 
  334.      from existing ones, and perform other data maintenance tasks. Once 
  335.      your data is in the KWIKSTAT (dbase III-type) database, you can access 
  336.      it from any of the other KWIKSTAT modules. Some of the KWIKSTAT 
  337.      procedures require that you have data in a file before you can do an 
  338.      analysis. Other procedures allow you to enter information from the 
  339.      keyboard at the time you request the procedure. Some procedures give 
  340.      you an option to enter data from a database, or from the keyboard. 
  341.      
  342.      Compatibility With Dbase III 
  343.      
  344.      A KWIKSTAT database uses the same file format as the dBASE III 
  345.      program. Therefore, data already stored in a dBASE III file may be 
  346.      read directly into all the KWIKSTAT programs. 
  347.      
  348.  
  349.  
  350.  
  351.  
  352.           ___________________________________________________________
  353.               Please become a registered user - send in ORDER form.
  354.                                         6
  355.           
  356.           KWIKSTAT 2.00
  357.           ___________________________________________________________
  358.           
  359.      THE DATA MODULE MENU 
  360.      
  361.      Details on Specific Procedures 
  362.      
  363.      The following explanation describes the options within the DATA 
  364.      module. 
  365.      
  366.      A) CREATE A NEW DATABASE STRUCTURE 
  367.      
  368.      The CREATE option is used to create a new database.  The structure, or 
  369.      layout, of a database must be described before you enter your data. 
  370.      You need to give some thought to how your database will "look" so it 
  371.      will be in the proper format to do the analysis you desire. 
  372.      
  373.      Do You Need a Grouping Variable? 
  374.      
  375.      If you have information on several groups, you should have a grouping 
  376.      variable as a part of your database. A grouping variable could be 
  377.      either character (e.g. A,B,C etc) or numeric (e.g. 1,2,3, etc). If you 
  378.      may subset your database in the future, use numbers for grouping 
  379.      variables, since subsetting requires comparisons of numeric variables 
  380.      to work. See the example analyses for help in setting up your database 
  381.      
  382.      Name Your Database 
  383.      
  384.      When you choose the A option, the program will ask you to specify a 
  385.      name for the database. The name may be up to 8 characters in length, 
  386.      DO NOT include an extension to the name, and the name should obey DOS 
  387.      naming conventions. (Do not use blanks, commas, periods, slashes, etc. 
  388.      in the name.) 
  389.      
  390.      The extension ".DBF" will be assigned to the database file name. Once 
  391.      you have named the database, you will define the fields -- names of 
  392.      the places where the data will be stored. Name your variable in such a 
  393.      way to make the name descriptive. Names may be up to 10 characters in 
  394.      length. For example, if age is one of the pieces of data you 
  395.      collected, name that variable AGE. Other example names might be 
  396.      WEIGHT, GROUP, SYSBP, etc. 
  397.      
  398.      In order for you to name each field, and to tell KWIKSTAT how much 
  399.      space to allocate for storing the information, KWIKSTAT will display 
  400.      highlighted areas to enter Name, Type, Width, and number of Decimal 
  401.      places for each field in the database structure, as illustrated D.2. 
  402.      
  403.      Define the Fields in Your Database 
  404.      
  405.      When you first enter the definition mode, the blinking cursor will be 
  406.      in the FIELD NAME area. Enter a name, and press the ENTER key. The 
  407.      name you choose will be displayed in all capital letters, and the 
  408.      cursor will move to the next area, TYPE. 
  409.      
  410.      In the TYPE area, you only need to enter the first character of the 
  411.           ___________________________________________________________
  412.               Please become a registered user - send in ORDER form.
  413.                                         7
  414.           
  415.           KWIKSTAT 2.00
  416.           ___________________________________________________________
  417.           
  418.      type, (N, C, L or D), then press the ENTER key. If your choice is 
  419.      NUMERIC, simply press ENTER when your cursor moves to this area, as 
  420.      this is the default TYPE. The cursor moves to the WIDTH area, unless 
  421.      TYPE is Logical or Date. KWIKSTAT allows you to define Logical and 
  422.      Date variables, but it will only read and use Numeric or Character 
  423.      type variables. 
  424.      
  425.      WIDTH is the number of characters reserved for the entry. Decimal is 
  426.      the number of decimal places (only relevant for numbers). The number 
  427.      of decimal places must be at least one less than the width. For 
  428.      example, if a number has the format ###.##, the width is 6 (count the 
  429.      decimal point), and the number of decimal places is 2. If DATE or 
  430.      LOGICAL is entered as type, the program will automatically assign a 
  431.      width of 8 or 1 respectively. 
  432.      
  433.      Once a complete field description is entered, a next blank field 
  434.      description will appear, ready for entry. To end the creation process, 
  435.      type Control-END (^END). The End key is on the numeric pad. As long as 
  436.      you have not ended the procedure, you may use the cursor keys to back 
  437.      up, and make any corrections. 
  438.      
  439.      If you mess up, end the procedure with Esc and begin again. After 
  440.      entering information, press CTRL-End (^End) to exit and save the 
  441.      created database. 
  442.      
  443.      If you want to enter data from the keyboard, answer "Y" to the 
  444.      question 
  445.      
  446.      ENTER DATA FROM KEYBOARD NOW (Y/N) 
  447.      
  448.      Otherwise answer "N".  You can always enter the data later, or add to 
  449.      data already in a database. 
  450.      
  451.      TYPES OF DATABASE FIELDS 
  452.      
  453.      1. The FIELDNAME:A fieldname must be 1 to 10 characters in length and 
  454.      MUST begin with a character (a to z). Upper and lower case DO NOT 
  455.      matter, since the name is always translated into all upper case. 
  456.      
  457.      2. The TYPE:Type may be 
  458.      
  459.      CHARACTER - May contain any character. 
  460.      
  461.      NUMERIC - Must contain numbers only. 
  462.      
  463.      DATE or LOGICAL fields can be created, but KWIKSTAT will only use 
  464.      Numeric and Character fields. 
  465.      
  466.      3. The WIDTH of the field: Choose a width so that the maximum number 
  467.      of characters will fit into the field. 
  468.      
  469.      4. DECIMALS:Decimals are only valid for numeric fields. This specifies 
  470.           ___________________________________________________________
  471.               Please become a registered user - send in ORDER form.
  472.                                         8
  473.           
  474.           KWIKSTAT 2.00
  475.           ___________________________________________________________
  476.           
  477.      to KWIKSTAT how many decimals to retain in the field. 
  478.      
  479.      LIMITATIONS TO THE KWIKSTAT DATABASE: 
  480.      
  481.      Maximum of 128 fields.
  482.      Maximum width of a field name is 10 characters.
  483.      Maximum width of a cell is 60 characters (15 for numbers)
  484.      Dates are always 8 characters and logical fields are 1 characters
  485.      wide.
  486.      
  487.      B) ENTER DATA - INPUT DATA FROM KEYBOARD OR ASCII FILE 
  488.      
  489.      When you choose this option, you will be asked to specify entry from 
  490.      the keyboard or from a file (ASCII file). For most small data sets, 
  491.      you will probably enter data from the keyboard. If you choose to enter 
  492.      data from the keyboard, an entry screen will appear containing the 
  493.      fields you created in the CREATE option. Enter data in the same way 
  494.      the field descriptions were entered. If you need to go back to a 
  495.      previously entered record to edit, pressing the PgUp key will 
  496.      automatically place you into edit mode. To end keyboard entry, press 
  497.      ^End. If the number of fields is too many to be displayed on one 
  498.      screen, you may use the Up and Down arrow keys to reveal the following 
  499.      pages of entry fields. 
  500.      
  501.      If you choose to enter data into a database from a file (or to append 
  502.      data to an already existing database), you will be asked the name of 
  503.      the raw data file. As will be described later in detail, the data in 
  504.      the file must match the database structure. 
  505.      
  506.      The data will be entered into the database, and a count of the records 
  507.      as they are entered will be displayed. It is a good idea to go to the 
  508.      KWIKLIST procedure to look at the data to verify that it has been 
  509.      entered correctly, or print the data out using the UTILITIES module 
  510.      report option. If the data does not match the fields, refigure the 
  511.      widths of each field to make sure it matches the columns of data in 
  512.      the disk file, and try again. 
  513.      
  514.      C) EDIT RECORDS IN THE DATABASE 
  515.      
  516.      If there is a need to change data already in a database, you may 
  517.      choose the EDIT option. You will be asked for the name of the 
  518.      database, and the specific record number you wish to edit. Once in the 
  519.      EDIT mode, you may use the PgUp and PgDn keys to move to records 
  520.      before or past the one you are currently editing. If you are entering 
  521.      data, and press the PgUp key, the program automatically places you in 
  522.      edit mode. 
  523.      
  524.      In the edit mode, you may specify that certain records are marked for 
  525.      delete. This is done by typing a ^U (CTRL-U) while you are editing a 
  526.      specific record. A **DEL** will appear on the screen of a deleted 
  527.      record. Often in procedures, specifically in REPORT, you are asked if 
  528.      you want the program to skip records marked for delete. In Edit, 
  529.           ___________________________________________________________
  530.               Please become a registered user - send in ORDER form.
  531.                                         9
  532.           
  533.           KWIKSTAT 2.00
  534.           ___________________________________________________________
  535.           
  536.      deleted records may be recovered by pressing ^U a second time, and the 
  537.      **DEL** mark is removed. To permanently get rid of "deleted" records, 
  538.      use the Pack procedure. 
  539.      
  540.      D) PACK - GET RID OF DELETED RECORDS 
  541.      
  542.      In the EDIT mode, or in dBASE III, you may mark certain records for 
  543.      delete. To permanently get rid of these records from the database, 
  544.      choose the PACK procedure. 
  545.      
  546.      E) DISPLAY STRUCTURE OF A DATABASE 
  547.      
  548.      This option displays the structure of your database, as you created in 
  549.      the CREATE option, or that was created in dBASE III. 
  550.      
  551.      F) SET MISSING VALUE CODES 
  552.      
  553.      Sometimes in the collection of data there are values that are lost or 
  554.      cannot be gathered. These are called "missing values". Missing values 
  555.      are usually designated as an impossible value. For example, the 
  556.      missing values designated for the variable AGE may be -9, since it is 
  557.      impossible for the variable AGE to have the value -9. When the program 
  558.      is asked to calculate the mean of age, for example, it will ignore 
  559.      those records where AGE is -9 in that calculation if -9 has been 
  560.      specified as the missing value code. 
  561.      
  562.      Once you designate a missing value code for a variable, it is up to 
  563.      you to make sure that this code gets placed into your database in the 
  564.      proper records and fields. 
  565.      
  566.      A standard dBASE III file does not have a way to designate missing 
  567.      values, but KWIKSTAT allows a way for you to designate these values in 
  568.      this program. The "Set Missing Values" option in the DATA MODULE is 
  569.      used to set up these values. When this option is selected, the program 
  570.      will display an entry screen that is similar to a data entry screen. 
  571.      You may enter one missing value for each field name. The missing value 
  572.      must obey the definition of the field in terms of length and type. 
  573.      
  574.      IMPORTANT NOTE:If missing values are NOT used, and there is a blank 
  575.      numeric variable in a calculation, it will be treated like the value 0 
  576.      (zero), so it is important to use missing values if your data contains 
  577.      such entries. Otherwise, the statistical calculations will be in 
  578.      error!! 
  579.      
  580.      G) TRANSFORMATION - MAKE A NEW VARIABLE 
  581.      
  582.      You may create a new numeric variable in a database with the 
  583.      transformation procedure. This procedure allows you to create this new 
  584.      variable as a function of old variables. For example, if you wanted a 
  585.      new variable to be the ratio of WEIGHT to HEIGHT, you could name a new 
  586.      variable RATIO, and use the transformation WEIGHT/HEIGHT as the 
  587.      expression to create the new variable. 
  588.           ___________________________________________________________
  589.               Please become a registered user - send in ORDER form.
  590.                                         10
  591.           
  592.           KWIKSTAT 2.00
  593.           ___________________________________________________________
  594.           
  595.      
  596.      CAREFUL ATTENTION must be paid to the definition to assure that the 
  597.      calculated numbers will fit into the field width specifications. If 
  598.      the calculated number is too large to fit into the field, it will be 
  599.      given the missing value code. If an illegal calculation is attempted, 
  600.      such as a division by 0, the result will be missing. If a calculation 
  601.      includes a missing value, the result will be a missing value. 
  602.      
  603.      OPERATIONS ALLOWED IN A TRANSFORMATION
  604.      
  605.      Mathematical operators: Add (+), Subtract (-), Divide (/),
  606.      Multiply (*)  and Exponentation (^).
  607.      
  608.      Following are a few examples of correct expressions, where the new
  609.      variable is called NEW, and numerical variables in the database
  610.      include AGE, WEIGHT, HEIGHT, and SCORE:
  611.      
  612.      NEW = AGE/HEIGHT
  613.      NEW = SCORE^2
  614.      NEW = SUM(AGE,WEIGHT,HEIGHT,SCORE)
  615.      
  616.      MATHEMATICAL FUNCTIONS SUPPORTED
  617.      
  618.      Name      Meaning             Example
  619.      --------  --------            ----------
  620.      ABS       Absolute value      ABS(SCORE)
  621.      ACOS      Arc Cosine          ACOS(SCORE)
  622.      ASIN      Arc Sine            ASIN(SCORE)
  623.      ATAN      Arc Tangent         ATAN(SCORE)
  624.      ATAN2     Arc Tanget y/x      ATAN2(y,x)
  625.      CSC       Cosecant            CSC(SCORE)
  626.      COS       Cosine              COS(SCORE)
  627.      COT       Cotangent           COT(SCORE)
  628.      EXP       Exponentiation      EXP(SCORE)
  629.      INT       Integer             INT(SCORE)
  630.      LN        Natural Log         LN(SCORE)
  631.      LOG       Log base 10         LOG(SCORE)
  632.      MAX       Maximum of list     MAX(1,T2,3)
  633.      MIN       Minimum of list     MIN(1,T2,T3)
  634.      MOD       MOD of number       MOD(9,2) is 9 mod 2
  635.      PI        PI                  PI = 3.14159265358979
  636.      RAND      Random number       number between 0 and 1
  637.      RECNO     Record number       database record number
  638.      ROUND     Rounds a number     ROUND(1.236,2)=1.24
  639.      SEC       Secant              SEC(SCORE)
  640.      SIN       Sine                SIN(SCORE)
  641.      SQRT      Square root         SQRT(SCORE)
  642.      SUM       Sum of list         SUM(1,2,3) = 6
  643.      TAN       Tangent             TAN(SCORE)
  644.      
  645.  
  646.  
  647.           ___________________________________________________________
  648.               Please become a registered user - send in ORDER form.
  649.                                         11
  650.           
  651.           KWIKSTAT 2.00
  652.           ___________________________________________________________
  653.           
  654.      H) SUBSET - CREATE NEW DATABASE BY SUBSET SELECTION 
  655.      
  656.      This option allows you to create a new database from an old one. 
  657.      
  658.      For example, suppose you have a database with a field GROUP with 
  659.      values 1, 2, 3, 4 and 5. You want to create a database that does NOT 
  660.      include Group 5. For example, your new database might be named 
  661.      NO5.DBF. You are asked for the field name to be used in the selection 
  662.      criteria. In this case, you would choose the field named GROUP. Next 
  663.      you must enter the selection relationship. It will be described as a 
  664.      numerical expression. The conditional operators you may use are: 
  665.      
  666.      =    >  <  >=  <=  <>    = and the logical operator .NOT. 
  667.      
  668.      The program will prompt you with 
  669.      
  670.      SELECT IF GROUP 
  671.      
  672.      and you must finish the selection criteria.  For example: 
  673.      
  674.      SELECT IF GROUP .NOT. = 5 
  675.      
  676.      (Select records for which the variable GROUP is not equal to 5.) You 
  677.      may use any of the variables in the database in the expression, and 
  678.      you may use the functions described in the TRANSFORMATION option. 
  679.      
  680.      I) LIST - KWIKLIST OF DATABASE RECORDS 
  681.      
  682.      KWIKLIST allows you to look at the information in your database. 
  683.      Kwiklist produces a simple on screen report that lists the data one 
  684.      record at a time. 
  685.      
  686.      DATA FROM OTHER SOURCES 
  687.      
  688.      KWIKSTAT can read data from a dBASE III file. To make a dBASE III 
  689.      database appear in the KWIKSTAT directory, copy the  .DBF file from 
  690.      your dBASE III directory, or set up the path for KWIKSTAT to your 
  691.      dBASE III directory. Once you have told KWIKSTAT where your dBASE III 
  692.      files are, the module will display all ".DBF" files in the that 
  693.      directory each time you are requested to enter a filename. However, 
  694.      you may also call files from other directories using drive and path 
  695.      names. 
  696.      
  697.      LOTUS PRODUCTS: WKS and DIF files to DBF 
  698.      
  699.      In Lotus 1-2-3, and other LOTUS products, there is a TRANSLATE 
  700.      facility, which allows you to output data into a DBF file. The version 
  701.      A1 of 1-2-3 writes out a dBASE II file, so it would need to be 
  702.      DCONVERTed to dBASE III. Also, 1-2-3 can translate DIF files into the 
  703.      worksheet, which can then be translated to DBF files. Lotus 1-2-3 and 
  704.      other programs will output data in standard ASCII files (PRN files in 
  705.      the case of 1-2-3). Using the description below on reading data from 
  706.           ___________________________________________________________
  707.               Please become a registered user - send in ORDER form.
  708.                                         12
  709.           
  710.           KWIKSTAT 2.00
  711.           ___________________________________________________________
  712.           
  713.      an ASCII file, you can read this data into KWIKSTAT. You may have to 
  714.      delete some blank or label lines from the files created by 1-2-3 to 
  715.      make them into nice data files. 
  716.      
  717.      USING ASCII FILES 
  718.      
  719.      KWIKSTAT can read data from standard ASCII text files. These kinds of 
  720.      files are usually supported by most word processing programs as well 
  721.      as most editors. Data must be in the form of column data, like this... 
  722.      
  723.      A 22 3.3 WF
  724.      A 33 4.2 BF
  725.      B 27 3.3 WM
  726.      :
  727.      ETC
  728.      
  729.      Use the instructions below to prepare the KWIKSTAT (dBASE) database 
  730.      structure to be used to read in this data. ANY PROGRAM that can output 
  731.      data in a standard ASCII text format (ie PC-FILE III, FRAMEWORK, 
  732.      RBASE, etc) can be used to prepare a data file to be used by KWIKSTAT. 
  733.      ALSO NOTE that KWIKSTAT can produce an ASCII text file, so that data 
  734.      created in KWIKSTAT can be output, and read into other programs. (ie 
  735.      dBASE, SAS, SPSS, etc). See the description of SDF files in the 
  736.      UTILITY program. 
  737.      
  738.      Reading ASCII file data into KWIKSTAT 
  739.      
  740.      NOTE:There is a file on the distribution disk named EX.DAT, which 
  741.      contains 50 records, and can be used to illustrate entering data from 
  742.      an ASCII file. 
  743.      
  744.      You must be in the DATA module to enter DATA into a KWIKSTAT dBASE III 
  745.      type database. Before Entering Data You Must Create The Database 
  746.      Structure. Create the structure of your database by selecting the 
  747.      "CREATE" option in the DATA module. (option A) You will define names 
  748.      for each variable, maximum width of the field, and type of variable. 
  749.      (Character, Numeric, Date, Logical). Memo fields are not supported. 
  750.      
  751.      If you will be entering data from an ASCII file, the field widths MUST 
  752.      match the width of the columns of data on file. If there are spaces 
  753.      between columns of data, make widths wide enough to account for those 
  754.      spaces. The following data is from the file EX.DAT on disk: 
  755.      
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.           ___________________________________________________________
  766.               Please become a registered user - send in ORDER form.
  767.                                         13
  768.           
  769.           KWIKSTAT 2.00
  770.           ___________________________________________________________
  771.           
  772.      A  12 22.3 25.3 28.2 30.6 5
  773.      A  11 22.8 27.5 33.3 35.8 5
  774.      B  12 22.8 30.0 32.8 31.0 4
  775.      A  12 18.5 26.0 29.0 27.9 5
  776.      B   9 19.5 25.0 25.3 26.6 5
  777.      :
  778.      etc
  779.      :
  780.      B  12 22.4 27.2 31.8 35.6 4
  781.      
  782.      In this example, you would define the following fields in the CREATE 
  783.      procedure. If you are actually doing this example, call the database 
  784.      something other than "EXAMPLE" since there is already one named that - 
  785.      suggestion: use the name "EX" for this database. 
  786.      
  787.      FIELD NAME     TYPE       WIDTH     DECIMALS
  788.      -----------   --------   ---------  --------
  789.      GROUP          C           2
  790.      AGE            N           4          0
  791.      TIME1          N           5          1
  792.      TIME2          N           5          1
  793.      TIME3          N           5          1
  794.      TIME4          N           5          1
  795.      STATUS         N           2
  796.      
  797.      NOTE:If there are columns in the input you want to ignore, just give 
  798.      them a dummy name, and call them character fields. Notice that the 
  799.      GROUP field is given a width of 2, even though it is only 1 character 
  800.      wide. This is to take into account the blank between the GROUP 
  801.      variable and the AGE variable. 
  802.      
  803.      Once you have defined the database to match the ASCII input file, 
  804.      choose the ENTER DATA option (B) from the DATA module menu, and choose 
  805.      to read data from a file. A good check is to then use Kwiklook to 
  806.      verify that the data has been entered correctly, or to print out the 
  807.      entire database using the REPORT option in UTILITIES. As an example, 
  808.      enter the data in EX.DAT, look at it in Kwiklist (option I), then run 
  809.      some descriptives on it to see if it matches the answers given from 
  810.      the EXAMPLE database. 
  811.      
  812.      
  813.      PRINTED OUTPUT 
  814.      
  815.      Kwikstat has several ways of providing hard copy output of results. 
  816.      Following are explanations of how each option works, and when it can 
  817.      be used: 
  818.      
  819.      Screen Print of Text Information 
  820.      
  821.      To capture textual results to the printer, you may press 
  822.      Shift-PrintScreen (or just Print Screen on newer keyboards) to cause a 
  823.      copy of what appears on the screen to be printed to your printer. 
  824.           ___________________________________________________________
  825.               Please become a registered user - send in ORDER form.
  826.                                         14
  827.           
  828.           KWIKSTAT 2.00
  829.           ___________________________________________________________
  830.           
  831.      
  832.      Screen Print of Graphic Information 
  833.      
  834.      You may print a graphic screen with the Print Screen command in the 
  835.      same way you print a text screen. Many of the graph screens in 
  836.      KWIKSTAT have a "disappearing prompt" that allow you to get a print of 
  837.      your graphic screen without the prompt appearing. Once a graph is on 
  838.      the screen, wait about 5 seconds, and the prompt will disappear. Then, 
  839.      issue the Print Screen command. Press Esc to exit the graph. 
  840.      
  841.      If you have problems getting to a graph to print, see the information 
  842.      concerning Hercules/Monochrome Graphics monitors. If you have a 
  843.      LaserJet or PaintJet printer, read the information in the Appendix 
  844.      about printers. 
  845.      
  846.      Program Controlled Printing to Printer or File 
  847.      
  848.      A number of the Kwikstat procedures allow you to output results to the 
  849.      printer in a formatted report form. The following procedures will 
  850.      prompt you for printing a report version of the output to a file or 
  851.      printer: 
  852.      
  853.      1) Analysis of Variance Results
  854.      2) Frequencies
  855.      3) Crosstabulations
  856.      4) Survival Analysis Results
  857.      5) Report Generation in Kwikstat Utilities
  858.      
  859.      STATISTICS MODULES 
  860.      
  861.      There are five (5) modules in Kwikstat that perform statistical 
  862.      analysis. These options appear on each module menu, their file names 
  863.      and descriptions are: 
  864.      
  865.      1) KS20STAT.EXE - Descriptive Statistics and Graphs
  866.      2) KS20AOV1.EXE - t-tests, ANOVA, Non-Parametric
  867.      3) KS20REG.EXE  - Simple and Multiple Linear Regression
  868.      4) KS20CROS.EXE - Crosstabs, Frequencies, Chi Square
  869.      5) KS20LIFE.EXE - Survival Analysis and Life Tables
  870.      
  871.      1) DESCRIPTIVE STATISTICS AND GRAPHICS 
  872.      
  873.      In the descriptive statistics module (KS20STAT.EXE), you may examine 
  874.      summary statistics of the data in the database. Graphics are used 
  875.      throughout the system to enhance understanding of certain statistical 
  876.      procedures. 
  877.      
  878.      Details on Specific Procedures 
  879.      
  880.      A) CHOOSE ANOTHER DATABASE TO USE 
  881.      
  882.  
  883.           ___________________________________________________________
  884.               Please become a registered user - send in ORDER form.
  885.                                         15
  886.           
  887.           KWIKSTAT 2.00
  888.           ___________________________________________________________
  889.           
  890.      B) DETAILED STATISTICS ON A SINGLE VARIABLE - Calculates mean, 
  891.      standard deviation, median, standard error of the mean, minimum, 
  892.      maximum, sum, variance, Tukey 5 number summary (0, 25th, 50th, 75th 
  893.      and 100th percentile), and displays a box plot of the 5 number 
  894.      summary. A 95% confidence interval (C.I.) about the mean is also 
  895.      displayed. 
  896.      
  897.      For sample sizes less than or equal to 30, a t-statistic is used to 
  898.      calculate the interval. For sample sizes over 30, the 95% (two-sided) 
  899.      z-statistic (1.96) is used. To print results to the printer, use the 
  900.      SHIFT-PRTSC command. 
  901.      
  902.      C) SUMMARY STATISTICS ON A NUMBER OF VARIABLES - In this procedure, 
  903.      you may choose a list of one or more variables from the database. 
  904.      Statistics calculated include sample size, mean, standard deviation, 
  905.      minimum, maximum, and SEM (standard error of the mean). 
  906.      
  907.      GROUPING FACTOR:If you have a grouping factor in your database, you 
  908.      may request output of summary statistics by group. You are also given 
  909.      the opportunity to print results to the printer, or to output results 
  910.      to a file. 
  911.      
  912.      D) P-VALUE DETERMINATION - calculates a p-value for normal (Z), 
  913.      Student's-t, F, or Chi-square statistic. In this procedure, enter the 
  914.      request by typing the distribution symbol, and value. For example: 
  915.      
  916.      Enter:T(20)=2 
  917.      
  918.      means that you want the two-sided p-value for a calculated t-statistic 
  919.      of 2 with 20 degrees of freedom. Other examples would be: 
  920.      
  921.      Z=1.96    Normal
  922.      F(4,8)=9.4     F-distribution (one-sided)
  923.      X(3)=4.32      Chi-Square (one-sided)
  924.      
  925.      To end this procedure, enter the word END at the prompt. 
  926.      
  927.      E) HISTOGRAM - Produces a histogram from values read from the 
  928.      database. This procedure is useful to determine if a continuous 
  929.      variable approximates a normal distribution. If the histogram has a 
  930.      peak toward the center, with both tails diminishing, the data could be 
  931.      considered close to normally distributed. 
  932.      
  933.      F) SCATTERPLOT - Produces a scatterplot of two variables. 
  934.      
  935.      G) TIME SERIES PLOT - Produces a time-series plot from one variable. 
  936.      
  937.  
  938.  
  939.  
  940.  
  941.  
  942.           ___________________________________________________________
  943.               Please become a registered user - send in ORDER form.
  944.                                         16
  945.           
  946.           KWIKSTAT 2.00
  947.           ___________________________________________________________
  948.           
  949.      EXAMPLE:  DESCRIPTIVE STATISTICS 
  950.      
  951.      Suppose you have the following data, and you want to be able to 
  952.      perform descriptive statistics such as getting means, standard 
  953.      deviations, and drawing histograms and a scatterplot. 
  954.      
  955.      AGE       WEIGHT
  956.      23        140.0
  957.      21        133.5
  958.      34        200.0
  959.      33        150.0
  960.      40        196.5
  961.      28        167.0
  962.      25        175.5
  963.      
  964.      STEP 1:CREATE A DATABASE: Begin KWIKSTAT with the KS command. Select 
  965.      the option from the DATA menu to CREATE a database (Option A). 
  966.      
  967.      STEP 2:DEFINE THE DATABASE STRUCTURE:You have two fields of data, AGE 
  968.      and WEIGHT. Both are numeric. The AGE field must have at least 2 
  969.      digits of width and the WEIGHT field must have 3 digits of width for 
  970.      the whole number and an additional digit for the decimal. Counting the 
  971.      decimal place, that means that the WEIGHT field must have at least a 
  972.      width of (3+1+1)=5. As you define the database, you will enter the 
  973.      following information: 
  974.      
  975.      FIELD NAME     TYPE  WIDTH  DECIMALS
  976.      -------------  ----- -----  --------
  977.      AGE              N    2       0
  978.      WEIGHT           N    5       1
  979.      
  980.      That is, for the first field name enter the name AGE (does not have to 
  981.      be in upper case). For TYPE enter N for Numeric. Enter 2 for the width 
  982.      and 0 for number of decimals. Then, enter the information for the 
  983.      variable name WEIGHT in a similar way. Notice that you allow 5 for the 
  984.      width of the WEIGHT field, then specify that one digit is a decimal. 
  985.      The AGE field uses no decimal places. Once you have defined the 
  986.      database structure press CTRL-E to end the creation procedure, then 
  987.      you may enter the data. 
  988.      
  989.      STEP 3: You may enter data immediately after defining the database, or 
  990.      you may enter or add to the data in the database at any time using the 
  991.      "Enter Data" option in the DATA module. For this example, answer Y to 
  992.      the question: 
  993.      
  994.      Enter data from keyboard now (Y/N)? 
  995.      
  996.      A screen will appear that contains the names of the fields, with a 
  997.      highlighted area where you may enter your data. You enter the data one 
  998.      record at a time. In this case, you would enter the data 23 and 140.0, 
  999.      then you will go to the next screen and enter the data 21 and 133.5 an 
  1000.      so on until all the data has been entered. You may end data entry two 
  1001.           ___________________________________________________________
  1002.               Please become a registered user - send in ORDER form.
  1003.                                         17
  1004.           
  1005.           KWIKSTAT 2.00
  1006.           ___________________________________________________________
  1007.           
  1008.      ways. If you have entered these seven records, and an 8th blank record 
  1009.      is on the screen waiting for you to enter data, use the ESC command to 
  1010.      end the entry and NOT save the current (8th) record. If you are still 
  1011.      on the 7th record, and want to end and KEEP the 7th record, use 
  1012.      CTRL-END to end the entry procedure. 
  1013.      
  1014.      After ending the entry procedure, you are ready to perform  your 
  1015.      analysis of the data. 
  1016.      
  1017.      STEP 4:Enter the Descriptives module by choosing option 1 from the 
  1018.      main menu. Once in the STAT module, you may choose which options to 
  1019.      use. 
  1020.      
  1021.      2) T-TESTS, ANOVA, NON-PARAMETRICS 
  1022.      
  1023.      The t-test, ANOVA and Non-Parametric module (KS20AOV1) performs the 
  1024.      following procedures: 
  1025.      
  1026.      t-test on independent groups
  1027.      t-test on paired or matched data
  1028.      single sample t-test
  1029.      One Way Analysis of Variance on independent groups
  1030.      One Way analysis of Variance on repeated data
  1031.      Non-Parametric one-way ANOVA (Kruskal-Wallis) and two
  1032.              group analysis (Mann-Whitney U)
  1033.      Newman-Keuls multiple comparisons at the 0.05 level for all ANOVAs
  1034.      Graphical comparison of groups using box plots.
  1035.      
  1036.      Details on Specific Procedures 
  1037.      
  1038.      A) CHOOSE ANOTHER DATABASE TO USE 
  1039.      
  1040.      B) COMPARE INDEPENDENT GROUPS ANALYSIS (t-test and ANOVA) 
  1041.      
  1042.      Independent groups are observations taken from groups in which 
  1043.      subjects in one group do not appear in another group, nor should the 
  1044.      groups be related in any way. Often a large group of subjects are 
  1045.      split into two or more groups in a random fashion to make the required 
  1046.      number of sub-groups. This option allows you to print the results to 
  1047.      the printer in report form. After the analysis is completed, you will 
  1048.      be able to select output of information to the printer. 
  1049.      
  1050.      C) COMPARE REPEATED OR PAIRED DATA (t-test and ANOVA) 
  1051.      
  1052.      Repeated measures are observations taken on the same or related 
  1053.      subjects over time or in differing circumstances. Examples would be 
  1054.      weight loss, or reaction to a drug across time. Repeated measures may 
  1055.      also be matched subjects. This option allows you to print the results 
  1056.      to the printer in report form. After the analysis is completed, you 
  1057.      will be able to select output of information to the printer. 
  1058.      
  1059.      In this module, a t-test is performed when there are two groups (or 
  1060.           ___________________________________________________________
  1061.               Please become a registered user - send in ORDER form.
  1062.                                         18
  1063.           
  1064.           KWIKSTAT 2.00
  1065.           ___________________________________________________________
  1066.           
  1067.      two repeated measures). For 3 to 10 groups or repeated measures, an 
  1068.      Analysis of Variance (ANOVA) is performed. The ANOVA attempts to 
  1069.      determine if there is a difference in the means across groups or 
  1070.      repeated measures. If the p-value for the ANOVA is small (ie 0.05 or 
  1071.      less), you may suspect that there is a difference. However, the ANOVA 
  1072.      does not tell you directly where that difference lies. See the 
  1073.      repeated measures example analysis that follows. 
  1074.      
  1075.      D) INDEPENDENT GROUP TESTS FROM SUMMARY DATA 
  1076.      
  1077.      This option allows you to perform a one-way ANOVA or a t-test if you 
  1078.      have only the means, standard deviations and group sizes of 2 to 10 
  1079.      groups. Since data is summary, no box plots can be given. 
  1080.      
  1081.      E) SINGLE SAMPLE T-TEST 
  1082.      
  1083.      This test allows you to choose a single variable, and test an 
  1084.      hypothesis that the mean of that group of data differs from a value 
  1085.      you choose (e.g. 0). 
  1086.      
  1087.      F) INDEPENDENT GROUP - NON-PARAMETRIC ANALYSIS 
  1088.      
  1089.      For two groups, the Kruskal-Wallis test is performed, and for 3 to 10 
  1090.      groups, the Mann-Whitney U test is performed. For 3 to 10 groups, a 
  1091.      multiple comparison test is also reported. 
  1092.      
  1093.      EXAMPLE:INDEPENDENT GROUP T-TEST 
  1094.      
  1095.      To compare two independent groups, Student's t-test for independent 
  1096.      comparisons can be used. If you suspect that your data may not be 
  1097.      normal, you should use non-parametric procedures. By independent 
  1098.      groups, we mean that the observed information is from different 
  1099.      entities - that is not the same person, plant, store etc. And that the 
  1100.      entities are not related. 
  1101.      
  1102.      The data used here are heights of plants grown using different 
  1103.      fertilizers. In order to enter this data into a database, we must 
  1104.      assign group numbers such as Present = Group 1 and Newer = Group 2. 
  1105.      
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.           ___________________________________________________________
  1120.               Please become a registered user - send in ORDER form.
  1121.                                         19
  1122.           
  1123.           KWIKSTAT 2.00
  1124.           ___________________________________________________________
  1125.           
  1126.      Data for independent group t-test
  1127.      ------------------------------------
  1128.      Present             Newer
  1129.      Fertilizer          Fertilizer             NOTE: Sizes of
  1130.      -------------       ----------             groups do not have
  1131.      46.2 cm             51.3 cm                to be equal.
  1132.      55.6                52.4
  1133.      53.3                54.6
  1134.      44.8                52.2
  1135.      55.4                64.3
  1136.      56.0                55.0
  1137.      48.9
  1138.      -----------------------------------
  1139.      
  1140.      A database would be created with two fields, GROUP and HEIGHT. 
  1141.      Reference the descriptive statistics on how to set up a database. The 
  1142.      data would be entered into the database as illustrated here: 
  1143.      
  1144.      GROUP             HEIGHT
  1145.      1                   46.2
  1146.      1                   55.6         Notice how the grouping
  1147.      1                   53.3         variable tells
  1148.      1                   44.8         KWIKSTAT which "HEIGHT"
  1149.      1                   55.4         value belongs to which
  1150.      1                   56.0         group.
  1151.      1                   48.9
  1152.      2                   51.3
  1153.      2                   52.4
  1154.      2                   54.6
  1155.      2                   52.2
  1156.      2                   64.3
  1157.      2                   55.0
  1158.      
  1159.      Notice that the GROUP field is 1 if the data are from the Present 
  1160.      Fertilizer group and 2 if the data are from the Newer fertilizer 
  1161.      group. Once the data is in a database, use Kwikstat "AOV1" module to 
  1162.      analyze the information. From the Kwikstat menu choose the option: 
  1163.      
  1164.      B) Compare independent groups (t-test, ANOVA) 
  1165.      
  1166.      You will be prompted by the program to indicate a grouping variable 
  1167.      (GROUP) and a data variable (HEIGHT). The means for each group 
  1168.      (1=Present 2=Newer) is displayed. A test for equality of variance 
  1169.      tests to see if this t-test assumption is met. A p-value greater than 
  1170.      0.05 indicates that you do not have a problem with this assumption. In 
  1171.      this case p=.4807 (no problem with inequality of variance). 
  1172.      
  1173.      The t-test is performed in two ways.  If the test for equality of 
  1174.      variance shows no problem, use the "Equal variance" results. 
  1175.      Otherwise, use the "Unequal variance" results. 
  1176.      
  1177.      In this case, they are identical results.  The calculated t-statistic 
  1178.           ___________________________________________________________
  1179.               Please become a registered user - send in ORDER form.
  1180.                                         20
  1181.           
  1182.           KWIKSTAT 2.00
  1183.           ___________________________________________________________
  1184.           
  1185.      is -1.32. The test is performed with 11 degrees of freedom, and the 
  1186.      p-value associated with the test is 0.213. A p-value greater than 0.05 
  1187.      is usually interpreted to mean that there is no significant difference 
  1188.      in the means. 
  1189.      
  1190.      EXAMPLE: PAIRED T-TEST 
  1191.      
  1192.      To compare groups for which there are before and after measurements 
  1193.      for each subject or when two different measurements are made on each 
  1194.      of several subjects, a paired analysis is appropriate. Data for a 
  1195.      paired Student t-test are before an after weight for 8 persons on a 
  1196.      diet. Notice that in this case, both data values are taken from the 
  1197.      SAME entity (patient). 
  1198.      
  1199.      Data for paired t-test
  1200.      
  1201.      Patient        Before   After
  1202.      1              162       168              NOTE:"Group" size
  1203.      2              170       136              is always equal.
  1204.      3              184       147
  1205.      4              164       159
  1206.      5              172       143
  1207.      6              176       161
  1208.      7              159       143
  1209.      8              170       145
  1210.      
  1211.      Data are entered into a database with the BEFORE and AFTER measure in 
  1212.      each record, as illustrated here: 
  1213.      
  1214.      BEFORE   AFTER
  1215.      162       168
  1216.      170       136
  1217.      184       147
  1218.      164       159
  1219.      172       143
  1220.      176       161
  1221.      159       143
  1222.      170       145
  1223.      
  1224.      To perform this analysis in the t-tests and ANOVA module, choose the 
  1225.      option: 
  1226.      
  1227.      C) Compare repeated or paired data (t-test, ANOVA) 
  1228.      
  1229.      In this case, since the p-value is small (p=0.008), you conclude that 
  1230.      there is a statistically significant difference in the BEFORE mean 
  1231.      when compared to the AFTER mean. Notice that in repeated measures 
  1232.      there is always the same number in each group. This is because each 
  1233.      measure is "matched" with another one. Whereas, in the independent 
  1234.      t-test, you are not restricted to the same number in each group. 
  1235.      
  1236.  
  1237.           ___________________________________________________________
  1238.               Please become a registered user - send in ORDER form.
  1239.                                         21
  1240.           
  1241.           KWIKSTAT 2.00
  1242.           ___________________________________________________________
  1243.           
  1244.      3) SIMPLE AND MULTIPLE LINEAR REGRESSION 
  1245.      
  1246.      The "REG" (KS20REG.EXE) module performs simple linear regression and 
  1247.      multiple linear regression. 
  1248.      
  1249.      Linear regression is used to examine the linear (straight line) 
  1250.      relationship between two or more variables. 
  1251.      
  1252.      Details on Specific Procedures 
  1253.      
  1254.      A) CHOOSE ANOTHER DATABASE TO USE 
  1255.      
  1256.      B) SIMPLE LINEAR REGRESSION ANALYSIS  - When you choose this option 
  1257.      KWIKSTAT will prompt you to choose the "independent" and "dependent" 
  1258.      variables to be used in the analysis. The "independent" variable is 
  1259.      generally that variable that we can choose, regulate or specify (e.g. 
  1260.      amount of money spent on advertising) and the "dependent" variable is 
  1261.      the one you observe, and would possibly like to predict. After the two 
  1262.      variables are chosen, KWIKSTAT will present the results of its 
  1263.      calculations. The estimated linear equation will be displayed along 
  1264.      with other results. 
  1265.      
  1266.      The equation of the line is calculated and displayed. For example, an 
  1267.      equation that describes how much sales to expect given a certain level 
  1268.      of advertising could be: 
  1269.      
  1270.      SALES = 100 + ADV * 4.5 
  1271.      
  1272.      Therefore, you would predict sales of $100 given no advertising 
  1273.      (ADV=0), and with advertising in the amount of $10, we would expect 
  1274.      sales of about $145 (100+10*4.5). Care must be used in predicting only 
  1275.      values which are within the limits of the original values of the 
  1276.      independent variable. Outside these limits, it is only speculation 
  1277.      that the linear relation continues to exists. Pearson's correlation 
  1278.      coefficient: The correlation coefficient is a number between -1.0 and 
  1279.      1.0, and tells us the strength of the linear relationship between the 
  1280.      two variables. A correlation close to -1 or 1 means that the 
  1281.      relationship is strong (negative or positive), and a correlation close 
  1282.      to 0 means that a relationship is non-existent or very weak. 
  1283.      
  1284.      T-test for significance of slope (correlation coefficient): If the 
  1285.      result of the t-test is that p is small (ie less than 0.05), we can 
  1286.      conclude that the linear relationship is strong (statistically 
  1287.      significant), and that the slope of the relationship is not 0 (zero). 
  1288.      
  1289.      Scatterplots of raw data and plot of residuals from linear fit are 
  1290.      available, as is the ability to forecast. Plots are helpful in 
  1291.      visually examining the relationship between the variables. It is 
  1292.      important to verify that the relationship is indeed a straight line. 
  1293.      If it is not, a pattern should emerge from the plot of the data, or 
  1294.      the residuals. If the data is not linear, it could possibly be 
  1295.      transformed to make it linear. 
  1296.           ___________________________________________________________
  1297.               Please become a registered user - send in ORDER form.
  1298.                                         22
  1299.           
  1300.           KWIKSTAT 2.00
  1301.           ___________________________________________________________
  1302.           
  1303.      
  1304.      C) MULTIPLE LINEAR REGRESSION ANALYSIS - In the multiple regression 
  1305.      procedure, you must enter a list of the independent variables (up to 
  1306.      10 variables may be used at any one time), and a single dependent 
  1307.      variable. A data file included on disk is named "LONGLEY". This 
  1308.      economic data correlates several variables with a variable called 
  1309.      total (total unemployment). The variable TOTAL is the dependent 
  1310.      variable, and the other variables are the independent variables. You 
  1311.      may use this database to test this procedure. Multiple linear 
  1312.      regression can be complicated. Refer to a good text on the subject 
  1313.      before making any conclusions about your results. Calculations 
  1314.      performed and displayed include: The coefficients and intercept to the 
  1315.      equation of the line are calculated and displayed. A significance test 
  1316.      is performed to determine their contribution to the model. 
  1317.      
  1318.      R-Square is calculated for the model, as well as adjusted R-Square. R 
  1319.      varies from 0.0 to 1.0, with 0 meaning no relationship (model is not 
  1320.      good) to 1.0, meaning the model perfectly describes the sample data. 
  1321.      
  1322.      An ANOVA is performed to determine the overall significance of the 
  1323.      model. If the ANOVA reveals a significant linear relationship, the 
  1324.      model may be a good representation of the sample data. 
  1325.      
  1326.      A plot of residuals from the fit is available. You may plot  the fit 
  1327.      against any of the terms. Look for patterns in the residuals. If they 
  1328.      exist, a transformation of the data may make the fit more linear. 
  1329.      
  1330.      EXAMPLE: SIMPLE LINEAR REGRESSION 
  1331.      
  1332.      The following data (Fisher, 1976) are Homicide Rate and Handgun 
  1333.      Licenses Issued per 100,000 population for the years 1961 to 1973. 
  1334.      
  1335.           Simple Linear Regression Data
  1336.      
  1337.      Year           Homicide       Handguns
  1338.                     Rate           Registered
  1339.      ----------------------------------------
  1340.      1961           08.60          178.15
  1341.      1962           08.90          156.41
  1342.      1963           08.52          198.02
  1343.      1964           08.89          222.10
  1344.      1965           13.07          301.92
  1345.      1966           14.57          391.22
  1346.      1967           21.36          665.56
  1347.      1968           28.03         1131.21
  1348.      1969           31.49          837.60
  1349.      1970           37.39          794.90
  1350.      1971           46.26          817.74
  1351.      1972           47.24          583.17
  1352.      1973           52.33          709.59
  1353.      
  1354.      You only need a database with these numbers, and can exclude year. 
  1355.           ___________________________________________________________
  1356.               Please become a registered user - send in ORDER form.
  1357.                                         23
  1358.           
  1359.           KWIKSTAT 2.00
  1360.           ___________________________________________________________
  1361.           
  1362.      Thus, create a database with two fields, HOMICIDES and HANDGUNS. The 
  1363.      data in the database will be from the table above, excluding the year 
  1364.      column. Thus, for the first record, the data would be 8.60 and 178.15. 
  1365.      The second record would be 8.9 and 146.41, and so on for 12 records. 
  1366.      
  1367.      To analyze this data choose regression module.  You will be asked to 
  1368.      choose the independent variable (field) and a dependent variable. In 
  1369.      this case, the independent variable is the number of handguns 
  1370.      registered (usually the variable that is set or controlled), and the 
  1371.      dependent variable is homicides (usually the variable of observed 
  1372.      values that you may want to predict). 
  1373.      
  1374.      Pearson's correlation coefficient (rho) is reported (0.7263)  as well 
  1375.      as R-squared (0.5275). Rho varies from -1.00 to 1.00. The further rho 
  1376.      is from 0.00, the stronger the correlation. A correlation of -1.00 or 
  1377.      1.00 is a perfect correlation. These are measures of how well the data 
  1378.      are correlated. The equation given is a mathematical representation 
  1379.      (model) of a straight (linear) line that passes through the data, and 
  1380.      can be used to predict the dependent variable given a value for the 
  1381.      independent variable. For example, in this case, if you wanted to 
  1382.      predict the homicide rate for 300 handguns registered, you would use 
  1383.      the equation: 
  1384.      
  1385.      Homicides =  4.910512  + 0.03761144 * 300 = 16.19 
  1386.      
  1387.      The t-test tests the statistical significance of the linear 
  1388.      relationship between the independent and dependent variable. A low 
  1389.      p-value (in this case 0.005) means that the two variable are 
  1390.      statistically significantly correlated for this data set. Reference a 
  1391.      text on regression for warnings about how to use (or not to use) this 
  1392.      kind of information for prediction purposes. In addition to these 
  1393.      results, you may also display a scatterplot of the data, and a 
  1394.      scatterplot of residuals. These plots are helpful to determine if a 
  1395.      linear fit to the data is appropriate. 
  1396.      
  1397.      EXAMPLE: MULTIPLE LINEAR REGRESSION 
  1398.      
  1399.      Longley introduced a data set which has often been used in comparing 
  1400.      multiple linear regression procedures in the literature. The database 
  1401.      used in the example is on the KWIKSTAT distribution disk. It is named 
  1402.      LONGLEY.DBF. 
  1403.      
  1404.      The Longley database consists of 7 fields, corresponding to the seven 
  1405.      columns of data in the above table. "Y" is the dependent variable (the 
  1406.      one to be predicted), and the other variables are independent 
  1407.      variables. 
  1408.      
  1409.      To analyze this data, choose the "Multiple Regression" option C from 
  1410.      the menu in the regression module. You will be asked to first enter 
  1411.      the independent variables. In this, these are fields 1 to 6, so you 
  1412.      enter "1,2,3,4,5,6" at the prompt. Enter "7" (TOTAL) as the dependent 
  1413.      variable. 
  1414.           ___________________________________________________________
  1415.               Please become a registered user - send in ORDER form.
  1416.                                         24
  1417.           
  1418.           KWIKSTAT 2.00
  1419.           ___________________________________________________________
  1420.           
  1421.      
  1422.      A low p-value in the ANOVA suggests that the dependent variable TOTAL 
  1423.      is related to the independent variables. The first part of the 
  1424.      information tells you the intercept value and the coefficient values 
  1425.      for each of the independent variable. These can be used to create an 
  1426.      equation that represent the linear fit through the data. In this case, 
  1427.      the equation would be: 
  1428.      
  1429.      TOTAL =  -3481930.1065 + DEFLATOR*15.0161517122 + GNP*-.03579443400 + 
  1430.      UNEMP*-2.0199053296 + ARMED*-1.0332049046 + POP*-.05130725587 + 
  1431.      TIME*1828.99249535 
  1432.      
  1433.      The t-value associated with each coefficient tests its significance in 
  1434.      the equation. In this case, you might question the validity of having 
  1435.      DEFLATOR, GNP and POP in the equation. 
  1436.      
  1437.      In choosing the variables to have in such an equation, you also need 
  1438.      to consider such questions as multicollinearity, heteroscedasticity 
  1439.      and parsimony. Refer to a good text on regression. 
  1440.      
  1441.      R-Square gives you a measure of the amount of variance explained by 
  1442.      the model, and the adjusted R-Square adjusts R-Square by how many 
  1443.      variables you have in the equation. The overall model is tested with 
  1444.      an analysis of variance. If the p-value for this test is low, it means 
  1445.      that the model (this particular selection of variables) provides a 
  1446.      good linear fit model for the set of data. 
  1447.      
  1448.      KWIKSTAT also provides an opportunity to examine residuals from the 
  1449.      fit. These residuals should look like a random scatter about 0. If 
  1450.      they do not, it may reveal a variable that is not a good linear 
  1451.      predictor, but may need to be replaced or transformed to provide a 
  1452.      better fit. 
  1453.      
  1454.      4) CROSSTABS, FREQUENCIES, CHI SQUARE 
  1455.      
  1456.      The "CROS" (KS20CROS.EXE) module performs analyses on categorical 
  1457.      data, that is, data observed in categories rather than measurement 
  1458.      data. Examples of categorical data are sex (Male, Female) and Color of 
  1459.      hair (Blonde, Black, Red, Brown). Some ordered data such as 
  1460.      socioeconomic status (measured as 1,2,3,4,5) is also analyzed like 
  1461.      categorical data. 
  1462.      
  1463.      Details on Specific Procedures 
  1464.      
  1465.      A) CHOOSE ANOTHER DATABASE 
  1466.      
  1467.      B) FREQUENCIES, PICTOGRAPH, PIE CHART: This procedure "counts"  the 
  1468.      occurrence of each data value for a single variable or field. For 
  1469.      example, in the EXAMPLE database included on disk, there is a field 
  1470.      named "GROUP" which contains three categories, A, B, and C. KWIKSTAT 
  1471.      will count the occurrence of each category, and report that there are 
  1472.      11 "A's", 29 "B's" and 10 "C's". The program will prompt you to 
  1473.           ___________________________________________________________
  1474.               Please become a registered user - send in ORDER form.
  1475.                                         25
  1476.           
  1477.           KWIKSTAT 2.00
  1478.           ___________________________________________________________
  1479.           
  1480.      
  1481.      Choose (A)nother analysis (P)rint (R)eturn to menu (D)raw P(I)e 
  1482.      
  1483.      Choose the Print option. Notice that in the printed table, the top 
  1484.      number for each group is the actual count from the database, and the 
  1485.      second number is the percent of the total. For example, 11 is 22% of 
  1486.      50. 
  1487.      
  1488.      After calculating the frequencies of a variable, you may display a 
  1489.      Pictograph (bar plot) or a Pie Chart. To select the Pictograph choose 
  1490.      the (D)raw option. To choose a Pie Chart, choose (I). You will be 
  1491.      asked to enter the name of the image to use (.IMG files will be 
  1492.      displayed). To display a bar plot, choose either BAR1 (a thin bar) or 
  1493.      BAR2 (a thick bar). Optionally, you may choose any of the other images 
  1494.      whose IMG files are displayed. See KWIKSTAT UTILITIES for information 
  1495.      on how to create your own images, or modify the images provided. 
  1496.      
  1497.      C) GOODNESS-OF-FIT: A goodness-of-fit test is a test that the 
  1498.      distribution of observed numbers closely matches the expected number 
  1499.      of occurrences. For example, suppose according to a genetic theory, 
  1500.      out of 250 peas crossbred, they should show a 9:3:3:1 ratio of Yellow 
  1501.      smooth, Yellow wrinkled, Green smooth, and Green wrinkled "offspring". 
  1502.      You would say that your null hypothesis (Ho:) was that you observed a 
  1503.      9:3:3:1 ratio of peas. 
  1504.      
  1505.      You would expect about (9/16) x 250 = 140.625 Yellow smooth peas, and 
  1506.      by similar calculations 46.875, 46.875, and 15.625 of the three other 
  1507.      varieties. After growing the plants, you observe 152 Yellow smooth, 
  1508.      39, 53, and 6 of the other three varieties. 
  1509.      
  1510.      The resulting analysis will give you a p-value of 0.031. Since it is 
  1511.      very small it suggests that the experiment DID NOT support the 
  1512.      theoretical ratio of 9:3:3:1. Thus, you would have evidence to reject 
  1513.      the null hypothesis. This example comes from ZAR (1974) page 46. 
  1514.      
  1515.      D) CROSSTABULATIONS, CHI-SQUARE:Crosstabulations look at two 
  1516.      categorical variables at once. A two-way table is constructed that 
  1517.      displays the number of counts for each pair of variables. KWIKSTAT 
  1518.      allows you to enter data for a two-way table from the keyboard or from 
  1519.      a database. 
  1520.      
  1521.      When you choose to enter the two-way table from the keyboard, KWIKSTAT 
  1522.      will ask you the size of the table (number of rows and columns). A 
  1523.      blank table will be presented on the screen, and you will then be 
  1524.      prompted to enter a number in each cell of the table. If you choose to 
  1525.      enter the information from the keyboard, KWIKSTAT will prompt you to 
  1526.      choose the two variables from the currently active database that you 
  1527.      wish to tabulate. KWIKSTAT will read the information from the 
  1528.      database, and construct the table. 
  1529.      
  1530.      The Chi-Square statistic tests the hypothesis that one variable is 
  1531.      independent of the other. A warning message that the Chi-Square test 
  1532.           ___________________________________________________________
  1533.               Please become a registered user - send in ORDER form.
  1534.                                         26
  1535.           
  1536.           KWIKSTAT 2.00
  1537.           ___________________________________________________________
  1538.           
  1539.      may not be appropriate will be given if expected values in one or more 
  1540.      cells is less than 5. If the table is 2 x 2, Fisher's Exact test and 
  1541.      Chi-Square with Yates correction are given. 
  1542.      
  1543.      LIMITATIONS: Limits to tables being displayed on the screen are 10 
  1544.      columns by 7 rows. If the table is too big for the screen, only the 
  1545.      test results are displayed. Tables as large as 15 columns by 100 rows 
  1546.      may be printed on a line printer. More information is given on printed 
  1547.      tables. 
  1548.      
  1549.      E) 3-DIMENSIONAL BAR CHART: Data for the 3-Dimensional graph must be 
  1550.      entered first in option D, either from the keyboard or from a 
  1551.      database. When you choose the "3-D" option, you will be given a chance 
  1552.      to pick a title for the plot, and name the axes (or field names from 
  1553.      the database will be used). 
  1554.      
  1555.      For example, after entering the crosstabulation from the EXAMPLE 
  1556.      database (STATUS by GROUP), choose the 3-D option, and display the 
  1557.      graph. Once the plot has been displayed on the screen, you may want 
  1558.      view a slice of it at a time, ("D" option) to see any bars that may be 
  1559.      hidden from view. Pressing the Space Bar will reveal a menu at the 
  1560.      bottom of the screen. 
  1561.      
  1562.      EXAMPLE: 2 x 2 CONTINGENCY TABLE 
  1563.      
  1564.      A contingency table is a set of observations (counts) for two 
  1565.      classifications. Data for the example 2 x 2 table are observations of 
  1566.      the number of beetles and bugs on the upper and lower side of leaves. 
  1567.      (Zar, p 292) This data will be used for performing a Chi-square 
  1568.      analysis with and without Yates correction, as well as for Fisher's 
  1569.      Exact Test. It should be noted, that because one of the cells produces 
  1570.      an expected value less than 5, the KWIKSTAT produces a warning message 
  1571.      that a Chi-square analysis for this data set may not be valid. 
  1572.      
  1573.                     2 x 2 Contingency Table Data
  1574.      
  1575.                           Beetles   Bugs
  1576.                        -------------------
  1577.           Upper Leaf     |   12   |  7  |
  1578.                        -------------------
  1579.           Lower Leaf     |    2   |  8  |
  1580.                        -------------------
  1581.      
  1582.      Using the "Crosstabs" option, you will be asked if the information for 
  1583.      the table will come from reading a database, or by you entering it 
  1584.      from the keyboard. Choose to enter data from the keyboard. 
  1585.      
  1586.      Next, you will be asked to specify the number of rows and columns. In 
  1587.      this case is is 2 rows and 2 columns. A blank table will appear on the 
  1588.      screen. Enter the numbers as in the table above by entering the number 
  1589.      12, press enter, enter the number 7, press enter, and so on. Once you 
  1590.      have entered all cells, the results of the analysis appear on the 
  1591.           ___________________________________________________________
  1592.               Please become a registered user - send in ORDER form.
  1593.                                         27
  1594.           
  1595.           KWIKSTAT 2.00
  1596.           ___________________________________________________________
  1597.           
  1598.      screen. You may also choose to print the results to the printer. 
  1599.      
  1600.      If you choose the (P)rinter option, the information will be printed. 
  1601.      
  1602.      Crosstab Printout Explained 
  1603.      
  1604.      For each cell in a crosstab printout, 5 numbers are given.  The top 
  1605.      number is the count that you entered. The second number is the 
  1606.      calculated expected value used to calculate the Chi-Square statistic. 
  1607.      The third through fifth numbers are percentages of the observed to the 
  1608.      TOTAL, ROW and COLUMN totals. 
  1609.      
  1610.      The statistics given include Chi-Square, Yates and the Fisher Exact 
  1611.      test. The p-value for each test gives you information about the 
  1612.      relationship between the two categories. If the p-value is low (say 
  1613.      p<=.05) then you have evidence to say that the two categories are not 
  1614.      independent. In this case it appears that beetles prefer the upper 
  1615.      sides of leaves and bugs are about split in their preference. In the 
  1616.      case of the Yates results, this decision is marginal. 
  1617.      
  1618.      There is a potential problem with this analysis since a normal rule of 
  1619.      thumb says that if an expected value is less than 5.0, the Chi-square 
  1620.      (and Yates) may not be valid. In this case, use the Fisher Exact test, 
  1621.      which suggests that the two categories are not independent, since the 
  1622.      Fisher p-value is 0.033. 
  1623.      
  1624.      EXAMPLE: ENTER DATA FROM A FILE 
  1625.      
  1626.      The previous example had you enter data from the keyboard, but you may 
  1627.      also read data from a file. Using the EXAMPLE.DBF dataset on the 
  1628.      KWIKSTAT distribution disks, you may create a table by choosing that 
  1629.      database, and choosing to create the database from a (D)atabase 
  1630.      instead of from the (K)eyboard. The way a database is set up to be 
  1631.      used to create a crosstabulation is by having field names that contain 
  1632.      a grouping code. For example, in the EXAMPLE database, the first few 
  1633.      records are: 
  1634.      
  1635.      A  12  22.3  25.3  28.2  30.6  5
  1636.      A  11  22.8  27.5  33.3  35.8  5
  1637.      B  12  22.8  30.0  32.8  31.0  4
  1638.      
  1639.      The fist column is "GROUP" and the last column is "STATUS"  GROUP has 
  1640.      values of A, B or C, and STATUS has values of 1, 2, 3, 4 or 5. The 
  1641.      cross-tabulation procedure counts the number of each value in each 
  1642.      chosen field, and uses this information to create the table. 
  1643.      
  1644.      5) SURVIVAL ANALYSIS AND LIFE TABLE 
  1645.      
  1646.      Module "LIFE" KS20LIFE.EXE performs Life Table and Survival Analysis 
  1647.      on a set of data. The data must be in the following form: 
  1648.      
  1649.      A TIME variable:This variable should contain a time variables (ie 
  1650.           ___________________________________________________________
  1651.               Please become a registered user - send in ORDER form.
  1652.                                         28
  1653.           
  1654.           KWIKSTAT 2.00
  1655.           ___________________________________________________________
  1656.           
  1657.      minutes, days, years, etc) in which the subject or component has been 
  1658.      observed to be alive (not-failed). 
  1659.      
  1660.      A CENSOR variable:This variable must take on the values 0 or 1. A 1 
  1661.      means the subject has died (failed), and a 0 means the subject was 
  1662.      still alive (not-failed) at the last available time period. 
  1663.      Optionally, a GROUP variable:This variable may contain a grouping 
  1664.      variable (numeric or character) of up to 10 groups. 
  1665.      
  1666.      Once the data is entered into the program, a life table for each group 
  1667.      is produced which includes, for each time interval, the number 
  1668.      entered, withdrawn, lost, dead, exposed, proportion dead, surviving, 
  1669.      cumulative surviving, hazard and density. 
  1670.      
  1671.      A plot is given for the group or groups cumulative proportion 
  1672.      surviving. If more than one group is entered, a Mantel-Haenszel test 
  1673.      is performed to test the hypothesis of equal survival patterns for 
  1674.      each group. 
  1675.      
  1676.      A small version of the survival plot will appear on the screen, and if 
  1677.      you choose to print a report of the session the report will include a 
  1678.      larger version of the plot along with other information from the 
  1679.      analysis. 
  1680.      
  1681.      EXAMPLE: SURVIVAL ANALYSIS 
  1682.      
  1683.      Survival analysis is used to create life tables, to examine survival 
  1684.      trends over time, and to compare survival times between groups. A 
  1685.      database on the KWIKSTAT distribution disks named LIFE.DBF can be used 
  1686.      as an example. This data is from Prentice (1973). The first few 
  1687.      records in the LIFE.DBF database are: 
  1688.      
  1689.             72     1    1
  1690.            411     1    1
  1691.            228     1    1
  1692.             11     1    1
  1693.             25     0    1
  1694.            144     1    1
  1695.              8     1    1
  1696.      
  1697.      The first column is the length of survival (TIME).  The second column 
  1698.      is a censor indication. A 1 means that the subject has failed (died), 
  1699.      and a 0 means that the subject has not failed (still alive) at the 
  1700.      last period observed. 
  1701.      
  1702.      The third column contains a grouping variable. In this case  it is 
  1703.      either 1 or 2. Group 1 may represent one treatment, while group 2 
  1704.      represents another kind of treatment. The object is to compute 
  1705.      survival curves to see if one treatment provides a longer average 
  1706.      survival distribution than the other. 
  1707.      
  1708.      After running a survival analysis, you will be asked if you want to 
  1709.           ___________________________________________________________
  1710.               Please become a registered user - send in ORDER form.
  1711.                                         29
  1712.           
  1713.           KWIKSTAT 2.00
  1714.           ___________________________________________________________
  1715.           
  1716.      print the results to the printer. Life table and survival curve output 
  1717.      is illustrated on the next few pages. In this example, the 
  1718.      Mantel-Haenzel Chi-Square analysis produces a p-value of 0.397. This 
  1719.      indicates that the two distributions are not statistically 
  1720.      significantly different - thus neither treatment is superior in terms 
  1721.      of survival distributions. 
  1722.      
  1723.      KWIKSTAT UTILITIES 
  1724.      
  1725.      The KWIKSTAT UTILITY module allows you to setup your default disk 
  1726.      (path), select the kind of monitor you are using, select colors for 
  1727.      your display, print out data from the database and create images for 
  1728.      use in pictographs. 
  1729.      
  1730.      Specific Program Options 
  1731.      
  1732.      A) CHOOSE ANOTHER DATABASE 
  1733.      
  1734.      B) OUTPUT SDF FILE: You may output the data into a  standard ASCII 
  1735.      TEXT file. (SDF file- Standard Data Format file). This is useful for 
  1736.      transferring your data to other programs. Along with the output of 
  1737.      data, you may also output a "format" file, which describes the 
  1738.      contents of the text file. 
  1739.      
  1740.      C) PRINT REPORT TO PRINTER OR FILE: You may output a listing of the 
  1741.      data in the dataset (or a selected subset of the database). In this 
  1742.      procedure you may specify the following report features: 
  1743.      
  1744.      WHICH DATA FIELDS TO OUTPUT
  1745.      OUTPUT RECORD NUMBER AS A COLUMN
  1746.      TITLE
  1747.      NUMBER OF LINES PER PAGE
  1748.      WIDTH OF PAGE (default is 80)
  1749.      OUTPUT TO A FILE OR PRINTER
  1750.      OUTPUT A SUBSET OF THE DATA (Search)
  1751.      
  1752.      NOTE:You may want to place a coded variable in your data set which 
  1753.      will allow you to easily select a subset of data to output. Subset 
  1754.      searches can be 
  1755.      
  1756.      1) Exact: case is ignored
  1757.      2) First one or more letters in a field: (AL* matches ALLEN,
  1758.         ALBERT, etc)
  1759.      3) Keyword: match a letter pattern within a field (ie [AL] matches
  1760.         ALLEN, BALES, etc).
  1761.      
  1762.      The REPORT procedure is menu driven. Simply answer the questions as 
  1763.      you are prompted. If the report is too wide to fit on a single width 
  1764.      of the specified paper width, the report will be printed in parts. 
  1765.      
  1766.  
  1767.  
  1768.           ___________________________________________________________
  1769.               Please become a registered user - send in ORDER form.
  1770.                                         30
  1771.           
  1772.           KWIKSTAT 2.00
  1773.           ___________________________________________________________
  1774.           
  1775.      D) SETUP KSTAT.INI - MONITORS, COLORS, PATH: This option allows you to 
  1776.      tell KWIKSTAT information about the kind of monitor you are using and 
  1777.      where you data is stored. 
  1778.      
  1779.      You will be asked to select between color-type monitors (CGA, EGA, 
  1780.      PGA, VGA, etc) and Monochrome Graphics (Hercules) Monitors. Standard 
  1781.      IBM Monochrome monitors without Hercules-type cards will NOT display 
  1782.      graphics. All KWIKSTAT graphics are produced in CGA modes. However, 
  1783.      standard EGA, VGA and other color monitors will emulate the CGA mode 
  1784.      without problem. There are a few clone color monitors that may not be 
  1785.      able to support CGA graphics; however, they are usually able to 
  1786.      support monochrome graphics. 
  1787.      
  1788.      After you choose monitor type, you will be presented with several 
  1789.      color/highlight options. Choose the one you like from the list. The 
  1790.      PATH question has to do with where your KWIKSTAT data will be stored. 
  1791.      If you have installed KWIKSTAT on the C: drive in the \KWIKSTAT 
  1792.      directory and you want all of your databases stored in this directory, 
  1793.      your path would be C:\KWIKSTAT. If all of your database are stored in 
  1794.      your dBASE III directory, which is on the C: drive in the directory 
  1795.      \DB3, your path would be C:\DB3. If you are storing all of your data 
  1796.      on a disk in the B: drive, your path would be B: or B:\ You may change 
  1797.      these options at any time.. 
  1798.      
  1799.      E) IMAGE CREATION/EDITING:  The image program allows you to create new 
  1800.      IMG files or edit images already created. When you begin the IMAGE 
  1801.      module, you will be asked if you want to create a NEW image, or to 
  1802.      edit an OLD image. If you choose to enter a NEW image, you will be 
  1803.      asked the pixel size. Maximum size for an image is 40 pixels (dots) 
  1804.      wide and 30 pixels high. For example, you may create an image 30 by 20 
  1805.      pixels. The Pictograph routine will adjust its graph according to the 
  1806.      size of the image. 
  1807.      
  1808.      In the image editor, you may move the cursor around the grid, and 
  1809.      select to fill a dot by pressing the numbers 1, 2 or 3. To unfill a 
  1810.      dot, place the cursor at the dot and press the space bar or 0. You 
  1811.      will see a version of the image in its correct size at the upper right 
  1812.      corner of the screen. Once you have created or edited an image, choose 
  1813.      the (S)ave option to write the information to disk. Names for image 
  1814.      files are 1 to 8 characters in length. Do not use an extension when 
  1815.      giving a name, the extension IMG is always assumed. 
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.           ___________________________________________________________
  1828.               Please become a registered user - send in ORDER form.
  1829.                                         31
  1830.           
  1831.           KWIKSTAT 2.00
  1832.           ___________________________________________________________
  1833.           
  1834.      APPENDIX I 
  1835.      
  1836.      SAMPLE DATA SETS ON DISK 
  1837.      
  1838.      EXAMPLE.DBF contains the fields GROUP, AGE, TIME1, TIME2, TIME3, 
  1839.      TIME4, and STATUS. Data can be used to illustrate Repeated Measures 
  1840.      (Use TIME variables), or Independent group ANOVA (Use GROUP as 
  1841.      grouping factor). It can be used for Crosstabulation (Use GROUP and 
  1842.      STATUS). 
  1843.      
  1844.      EX.DAT is the raw data, from which a database like EXAMPLE.DBF could 
  1845.      be created using the DATA module. In the DATA module, create a new 
  1846.      database, with the following fields, then enter the data with the 
  1847.      Enter from a file option. The format for the EX.DAT file is: 
  1848.      
  1849.      FIELD     TYPE    WIDTH     DECIMALS
  1850.      -----     -----   -------   --------
  1851.      GROUP     CHAR      1          -
  1852.      AGE       NUM       4          0
  1853.      TIME1     NUM       5          1
  1854.      TIME2     NUM       5          1
  1855.      TIME3     NUM       5          1
  1856.      TIME4     NUM       5          1
  1857.      STATUS    NUM       2          0
  1858.      
  1859.      LIFE.DBF - Database for the LIFE module.  It is used in an example
  1860.      for the LIFE module.
  1861.      
  1862.      LONGLEY.DBF - Data from Longley (1946). This data is used in the
  1863.      Multiple Regression Procedure example. The variable TOTAL is the
  1864.      dependent variable and the rest are independent variables.
  1865.      
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.           ___________________________________________________________
  1887.               Please become a registered user - send in ORDER form.
  1888.                                         32
  1889.           
  1890.           KWIKSTAT 2.00
  1891.           ___________________________________________________________
  1892.           
  1893.      APPENDIX II
  1894.      
  1895.      SOME COMMON ERROR CODES
  1896.      
  1897.      24 - Device Timeout - Your printer may be off or disconnected.
  1898.      25 - Printer has malfunctioned
  1899.      27 - Printer is out of paper
  1900.      61 - Disk Full
  1901.      67 - Too many files on one diskette
  1902.      70 - Disk is write protected
  1903.      71 - Disk is not ready (Is drive door closed?)
  1904.      72 - Disk Media Error (Disk may be bad)
  1905.      
  1906.      Others: Check Appendix in BASIC manual
  1907.      
  1908.      
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.           ___________________________________________________________
  1946.               Please become a registered user - send in ORDER form.
  1947.                                         33
  1948.           
  1949.           KWIKSTAT 2.00
  1950.           ___________________________________________________________
  1951.           
  1952.      APPENDIX III
  1953.      
  1954.      USER'S BALLOT
  1955.      Please indicate your preference for improvements in KWIKSTAT. On
  1956.      a scale of 0 to 10
  1957.      
  1958.      0 = Very Low priority for this change
  1959.      10 = Very High priority for this change
  1960.      
  1961.      Vote  Proposed item of change
  1962.      ---------------------------------------------------
  1963.      ____  More "BY GROUP" capabilities
  1964.      ____  Ability to sort database
  1965.      ____  Add multi-way ANOVA
  1966.      ____  Add more Non-parametric statistical tests
  1967.      ____  Add General Linear Model
  1968.      ____  Make Report more flexible
  1969.      ____  Add stem and leaf plot
  1970.      ____  Add time series analysis
  1971.      ____  Speed up calculations
  1972.      ____  Add more graphics
  1973.      ____  _____________________________________________
  1974.      ____  _____________________________________________
  1975.      ____  _____________________________________________
  1976.      ____  _____________________________________________
  1977.      
  1978.      Mail to:TexaSoft, P.O. Box 1169, Cedar Hill, Texas 75104.
  1979.      Thanks.
  1980.      
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.           ___________________________________________________________
  2005.               Please become a registered user - send in ORDER form.
  2006.                                         34
  2007.           
  2008.           KWIKSTAT 2.00
  2009.           ___________________________________________________________
  2010.           
  2011.      APPENDIX IV
  2012.      
  2013.      Bug Report for KWIKSTAT
  2014.      --------------------------------------------------------------
  2015.      Please explain in detail the problem that occurred. If possible,
  2016.      send a print out of the results or Print Screen.
  2017.      KWIKSTAT VERSION YOU ARE USING:________________________
  2018.      KWIKSTAT MODULE where problem occurred:____________________
  2019.      YOUR COMPUTER: BRAND/Model_____________________________
  2020.      MONITOR TYPE:________AMOUNT OF MEMORY:_______________
  2021.      VERSION OF DOS YOU ARE USING:____________________________
  2022.      MEMORY RESIDENT PROGRAMS YOU USE:____________________
  2023.      PROBLEM:
  2024.      
  2025.      
  2026.      
  2027.      
  2028.      
  2029.      
  2030.      
  2031.      
  2032.      
  2033.      
  2034.      
  2035.      
  2036.      
  2037.      
  2038.      
  2039.      
  2040.      
  2041.      
  2042.      
  2043.      
  2044.      
  2045.      
  2046.      
  2047.      
  2048.      ---------------------------------------------------------------
  2049.      Mail to:TexaSoft, P.O. Box 1169, Cedar Hill, Texas 75104. Thanks.
  2050.      
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.           ___________________________________________________________
  2064.               Please become a registered user - send in ORDER form.
  2065.                                         35
  2066.           
  2067.           KWIKSTAT 2.00
  2068.           ___________________________________________________________
  2069.           
  2070.      APPENDIX V
  2071.      
  2072.      Hercules - Monochrome Graphics Monitors
  2073.      
  2074.      Hercules graphics allow standard monochrome monitors to display
  2075.      graphics.  In  order for KWIKSTAT to know that you are using a
  2076.      Hercules monitor,  you must do the following:
  2077.      
  2078.      1) Enter the command QBHERC before entering KWIKSTAT.  You can put
  2079.      this command in the KS.BAT file as illustrated below.
  2080.      
  2081.      2) In the UTILITIES module, choose the SET-UP option and tell
  2082.      KWIKSTAT  that you are using a Hercules monitor. Choose the
  2083.      save-to-disk option.
  2084.      
  2085.      3) If your particular Hercules setup does not support printing to
  2086.      your printer, you may have to acquire a supplemental program to
  2087.      allow you to print graphics screens to the printer.
  2088.      
  2089.      EXAMPLE BATCH FILES: These two batch files show how you
  2090.      might implement special printer and monitor programs into
  2091.      the KS.BAT batch file.  The first uses the command LASERJET
  2092.      to invoke a program for Laserjet printer support.  The
  2093.      second batch file uses the QBHERC command to allow KWIKSTAT
  2094.      to use graphics on a Hercules type monitor, and the command
  2095.      SCRNDMP invokes a program that allows a printscreen of
  2096.      Hercules type graphics to be printed on a dot matrix
  2097.      printer.
  2098.      
  2099.      LASERJET A                   QBHERC
  2100.      KS20DATA                     SCRNDMP
  2101.                                   KS20DATA
  2102.      
  2103.      Printers 
  2104.      
  2105.      In order to be able to print graphics screens from KWIKSTAT, you must 
  2106.      have a printer that supports graphic printing, and you must have a 
  2107.      program that will drive the printer. For most common dot-matrix 
  2108.      printers, the program called GRAPHIC.COM, which comes with PC-DOS is 
  2109.      sufficient. However, with other printers, such as laser printers, you 
  2110.      may have to acquire a special printer driver. 
  2111.      
  2112.      For the H-P Laserjet, there is a program you may acquire from 
  2113.      shareware and public domain sources. It is called LASERJET, and allows 
  2114.      you to print graphic screens to your Laserjet printer. For Hercules 
  2115.      graphics users with dot matrix printers, the program SCRNDMP usually 
  2116.      allows your to print graphics. Refer to the sample batch files on the 
  2117.      previous page to see how to place your printer support program into 
  2118.      your KS.BAT file so that it will be invoked each time you begin 
  2119.      KWIKSTAT. A sampling of printer support programs are on Disk 2. 
  2120.      TexaSoft also can provide a disk with additional printer support 
  2121.      programs. See the order form on disk for more information about the 
  2122.           ___________________________________________________________
  2123.               Please become a registered user - send in ORDER form.
  2124.                                         36
  2125.           
  2126.           KWIKSTAT 2.00
  2127.           ___________________________________________________________
  2128.           
  2129.      cost of this disk. 
  2130.      
  2131.      References 
  2132.      
  2133.      Dixon, W.J., and Massey, F.J., INTRODUCTION TO STATISTICAL ANALYSIS, 
  2134.      McGraw-Hill Book Company, New York, 1969. 
  2135.      
  2136.      Gunst, R.F. and Mason R.L., REGRESSION ANALYSIS AND ITS APPLICATIONS, 
  2137.      MArcel Dekker Inc, New York, 1980. 
  2138.      
  2139.      Longley, J.W. "An appraisal of least squares programs for the 
  2140.      electronic computer from the point of view of the user." JASA, 1967, 
  2141.      62, 819-831 
  2142.      
  2143.      Neter, J. and Wasserman, W., APPLIED LINEAR STATISTICAL MODELS, 
  2144.      Richard D. Irwin, Inc, 1974. 
  2145.      
  2146.      Prentice, R. L. "Exponential survivals with censoring and explanatory 
  2147.      variables. BIOMETRIKA 60, 1973, 279-288. 
  2148.      
  2149.      Tukey, J.W., EXPLORATORY DATA ANALYSIS, Prentice Hall. 
  2150.      
  2151.      Winer, B.J., STATISTICAL PRINCIPLES IN EXPERIMENTAL DESIGN, Second 
  2152.      Edition, McGraw-Hill Book Company, 1971. 
  2153.      
  2154.      Zar, J.H., BIOSTATISTICAL ANALYSIS, Prentice Hall. Inc, 1974 
  2155.      
  2156.      Products mentioned: Lotus 1-2-3 is a product of Lotus  development, 
  2157.      dBASE III is a product of Ashton-Tate. 
  2158.      
  2159.      
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.           ___________________________________________________________
  2182.               Please become a registered user - send in ORDER form.
  2183.                                         37
  2184.           
  2185.           KWIKSTAT 2.00
  2186.           ___________________________________________________________
  2187.           
  2188.      KWIKSTAT PROGRAM LIMITS: 
  2189.      
  2190.      KWIKSTAT DATABASE: 128 Variables 10 characters to a name 60 character 
  2191.      maximum width for character variable 
  2192.      
  2193.      DESCRIPTIVE STATISTICS: Detailed Statistics on a single variable: 
  2194.      5,000 cases maximum. Summary statistics: No maximum. Histogram: 5000 
  2195.      cases maximum Scatterplot and Time Series plot: 3,000 cases maximum. 
  2196.      
  2197.      T-TESTS AND ANOVA: 10 groups maximum, 4,000 cases. 
  2198.      
  2199.      REGRESSION: Simple linear: 2,000 cases maximum Multiple:10 independent 
  2200.      variables, 300 cases. 
  2201.      
  2202.      CROSSTABS: 15 by 100 table to printer, 7 by 10 to screen. 
  2203.      
  2204.      SURVIVAL ANALYSIS: 10 groups, 1,000 cases 
  2205.      
  2206.      
  2207.      
  2208.      
  2209.      
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.  
  2242.                                         38
  2243.  
  2244.      
  2245.      
  2246.  
  2247.  
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  
  2266.  
  2267.  
  2268.  
  2269.  
  2270.  
  2271.  
  2272.  
  2273.  
  2274.  
  2275.  
  2276.  
  2277.  
  2278.